// VoiceWorker.h
#ifndef VOICEWORKER_H
#define VOICEWORKER_H

#include <QObject>
#include <QString>
#include "ListenAndSpeak.h"

class VoiceWorker : public QObject
{
    Q_OBJECT

public:
    VoiceWorker(ListenAndSpeak* module) : voiceModule(module) {}

public slots:
    void doRecognition();

signals:
    void voiceRecognized(const QString& result);

private:
    ListenAndSpeak* voiceModule;
};

#endif // VOICEWORKER_H
